From: Florian Müllner Date: Tue, 17 Mar 2015 15:46:08 +0000 (+0100) Subject: calendar: Fix body alignment for RTL locales X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1451 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1002bbc212f1e0697e856094170a19c814c9833e;p=gnome-shell.git calendar: Fix body alignment for RTL locales Since commit 75745fc23f3f22, the bodyStack itself is no longer start-aligned to not break custom body actors like chat notifications. However we still want "normal" body actors start-aligned to get the correct RTL behavior. --- diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 0e03a2b4b..a79fd7e9f 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -122,7 +122,8 @@ const URLHighlighter = new Lang.Class({ _init: function(text, lineWrap, allowMarkup) { if (!text) text = ''; - this.actor = new St.Label({ reactive: true, style_class: 'url-highlighter' }); + this.actor = new St.Label({ reactive: true, style_class: 'url-highlighter', + x_expand: true, x_align: Clutter.ActorAlign.START }); this._linkColor = '#ccccff'; this.actor.connect('style-changed', Lang.bind(this, function() { let [hasColor, color] = this.actor.get_theme_node().lookup_color('link-color', false);